package com.bf.electroplating.pojo.enums;

import lombok.Getter;

@Getter
public enum ReportTypeEnum {

    FQ("0", "废水监测"),
    FS("1", "废气监测"),
    DXS("2", "地下水监测");

    private final String code;
    private final String desc;

    private ReportTypeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static String getDesc(String code) {
        for (ReportTypeEnum item : ReportTypeEnum.values()) {
            if (item.getCode().equals(code)) {
                return item.getDesc();
            }
        }
        return null;
    }

}
